package com.jl.jlapp.adapter;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.ShoppingCartModel;

import java.util.List;

public class ShopCartPageGoodsSpecificationAdapter
  extends BaseQuickAdapter<ShoppingCartModel.ResultDataBean.GoodsDetailsBean.GoodsSpecificationDetailsBean, BaseViewHolder>
{
  public String checkedGoodsSpc = "";
  
  public ShopCartPageGoodsSpecificationAdapter(int paramInt, @Nullable List<ShoppingCartModel.ResultDataBean.GoodsDetailsBean.GoodsSpecificationDetailsBean> paramList)
  {
    super(paramInt, paramList);
  }
  
  protected void convert(BaseViewHolder paramBaseViewHolder, ShoppingCartModel.ResultDataBean.GoodsDetailsBean.GoodsSpecificationDetailsBean paramGoodsSpecificationDetailsBean)
  {
    TextView localTextView = (TextView)paramBaseViewHolder.getView(R.id.goods_spec_detail);
    localTextView.setTextColor(paramBaseViewHolder.itemView.getResources().getColor(R.color.trans_333333));
    localTextView.setBackgroundResource(R.drawable.bg_text_grey_border);
    paramBaseViewHolder.setText(R.id.goods_spec_detail, paramGoodsSpecificationDetailsBean.getSpecifications());
    if (paramGoodsSpecificationDetailsBean.getSpecifications().equals(this.checkedGoodsSpc))
    {
      localTextView.setTextColor(paramBaseViewHolder.itemView.getResources().getColor(R.color.checkGreenColor));
      localTextView.setBackgroundResource(R.drawable.bg_text_green_border);
    }
  }
  
  public void setCheckedGoodsSpc(String paramString)
  {
    this.checkedGoodsSpc = paramString;
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/ShopCartPageGoodsSpecificationAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */